package com.lj.back.manage.scaffold.module.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lj.back.manage.scaffold.module.sys.DO.SysUserTokenDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.NotBlank;

/**
 * @author lv
 * @version 1.0.0
 */
@Mapper
@Repository
public interface SysUserTokenDao extends BaseMapper<SysUserTokenDO> {

    /**
     * 修改用户token过期时间
     * @param expireTime 过期时间
     * @return
     */
    int updateUserTokenExpireTime(@NotBlank(message = "{token.notnull}") String token, long expireTime);
}
